const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
if (process.env.NODE_ENV === "production") {
    module.exports = {
        plugins: [new BundleAnalyzerPlugin()],
        //打包时这些依赖不进行打包
        // externals:{
        //     vue:"Vue",
        //     vuex: "Vue",
        //     axios:"axios"
        // }
    }
} else {
    module.exports = {}
}